<template>
  <div class="index-container">
    <div class="welcome-box">
      <div class="title-animation">欢迎来到</div>
      <div class="system-name">班级信息管理系统</div>
      <div class="decoration-line"></div>
      <div class="sub-title">高效、便捷的学生数据管理平台</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'IndexPage',
  methods: {
    enterSystem() {
      this.$router.push('/dashboard');
    }
  }
}
</script>

<style scoped lang="scss">
.index-container {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
}

.welcome-box {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 50px 70px;
  text-align: center;
  animation: fadeIn 1s ease-out;
  transform: translateY(0);
  transition: transform 0.3s ease;

  &:hover {
    transform: translateY(-5px);
  }
}

.title-animation {
  font-size: 28px;
  color: #606266;
  margin-bottom: 10px;
  opacity: 0;
  animation: slideIn 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.system-name {
  font-size: 48px;
  color: #409EFF;
  font-weight: bold;
  margin-bottom: 20px;
  opacity: 0;
  animation: slideIn 0.8s ease-out forwards;
  animation-delay: 0.6s;
}

.decoration-line {
  height: 3px;
  width: 80px;
  background: linear-gradient(90deg, #409EFF, #53a8ff);
  margin: 0 auto 25px;
  opacity: 0;
  animation: expandLine 1s ease-out forwards;
  animation-delay: 0.9s;
}

.sub-title {
  font-size: 18px;
  color: #909399;
  margin-bottom: 40px;
  opacity: 0;
  animation: slideIn 0.8s ease-out forwards;
  animation-delay: 1.2s;
}

.enter-button {
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 30px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 1.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandLine {
  from {
    opacity: 0;
    width: 0;
  }
  to {
    opacity: 1;
    width: 80px;
  }
}
</style>
